package com.JobFind.DTO;

import com.JobFind.model.TbCompany;
import com.JobFind.model.TbRecruitment;

public class RecruitmentDTO implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	private Integer recruitmentId;
    private CompanyDTO companyDTO;
    private String recruitmentPosition;
    private String recruitmentInfo;
    private String recruitmentRemarks;
    private Integer isDeleted;
    private Integer recruitmentNum;
    private Integer recruitmentAreNum;
    
	public Integer getRecruitmentId() {
		return recruitmentId;
	}
	public void setRecruitmentId(Integer recruitmentId) {
		this.recruitmentId = recruitmentId;
	}
	public CompanyDTO getCompanyDTO() {
		return companyDTO;
	}
	public void setCompanyDTO(CompanyDTO companyDTO) {
		this.companyDTO = companyDTO;
	}
	public String getRecruitmentPosition() {
		return recruitmentPosition;
	}
	public void setRecruitmentPosition(String recruitmentPosition) {
		this.recruitmentPosition = recruitmentPosition;
	}
	public String getRecruitmentInfo() {
		return recruitmentInfo;
	}
	public void setRecruitmentInfo(String recruitmentInfo) {
		this.recruitmentInfo = recruitmentInfo;
	}
	public String getRecruitmentRemarks() {
		return recruitmentRemarks;
	}
	public void setRecruitmentRemarks(String recruitmentRemarks) {
		this.recruitmentRemarks = recruitmentRemarks;
	}
    
	public Integer getRecruitmentNum() {
		return recruitmentNum;
	}
	public void setRecruitmentNum(Integer recruitmentNum) {
		this.recruitmentNum = recruitmentNum;
	}
	public Integer getRecruitmentAreNum() {
		return recruitmentAreNum;
	}
	public void setRecruitmentAreNum(Integer recruitmentAreNum) {
		this.recruitmentAreNum = recruitmentAreNum;
	}
	public Integer getIsDeleted() {
		return isDeleted;
	}
	public void setIsDeleted(Integer isDeleted) {
		this.isDeleted = isDeleted;
	}
	public TbRecruitment toDAO(){
		TbRecruitment recruitmentBean = new TbRecruitment();
		TbCompany companyBean = new TbCompany();
		companyBean.setCompanyId(this.getCompanyDTO().getCompanyId());
		recruitmentBean.setRecruitmentId(this.getRecruitmentId());
		recruitmentBean.setRecruitmentInfo(this.getRecruitmentInfo());
		recruitmentBean.setRecruitmentPosition(this.getRecruitmentPosition());
		recruitmentBean.setRecruitmentRemarks(this.getRecruitmentRemarks());
		recruitmentBean.setIsDeleted(this.getIsDeleted());
		recruitmentBean.setTbCompany(companyBean);
		recruitmentBean.setRecruitmentNum(this.getRecruitmentNum());
		recruitmentBean.setRecruitmentAreNum(this.getRecruitmentAreNum());
		return recruitmentBean;
	}
    

}
